(function() { "use strict";

app
    .constant("Oauth2", {
        protocol: "http://",
        server: "121.43.148.35:",
        // server: "123.56.161.124:",
        port: "9080",
        context: "/AS",
        tokenUrl: "/oauth/token",
        clientId: "client_id=orthopacs_apps",
        clientSecret: "client_secret=avdsafajsdqwerponaskd9803174090h5340",
        responseType: "response_type=code",
        grantType: "grant_type=password",
        userName: "username=",
        password: "password="
    })
    .constant("RS", {
        protocol: "http://",
        server: "121.43.148.35:",
        // server: "123.56.161.124:",
        port: "9080",
        context: "/RS",
        markLoginUrl: "/rest/user/markLogin",
        restUrl: "/rest/user/getUser",
        access_token: "access_token="
    })

    .constant("DS", {
        protocol: "http://",
        server: "121.43.148.35:",
        // server: "123.56.161.124:",
        port: "9080",
        context: "/DS"
    })

    .constant("MS", {
        protocol: "http://",
        server: "120.55.124.28:",
        port: "8080",
        context: "/modeshape-rest",
        binaryUrl : "/sample/default/binary/"
    })
    
    .constant("AUTH_EVENTS", {
        notAuthenticated: "auth-not-authenticated",
        notAuthorized: "auth-not-authorized"
    })
    .constant('appinfo', {
        version: '0.09',
        appname: 'Referral',
        apkname: 'Referral_UAT.apk',
        apkurl: 'http://uat.hnyygroup.com.cn',
        infourl: 'http://uat.hnyygroup.com.cn/apk.json'
    })
    .constant("USER_ROLES", {
        admin: "admin_role",
        public: "public_role"
    })
    .constant("CS", {
        // protocol: "ws://",
        // server: "192.168.2.110:",
        // port: "9080",
        // context: "/TestWebScoket/chat?",
        // id: "id=",
        url: "ws://121.43.148.35:9080/RS/chat?"
        // url: "ws://123.56.161.124:9080/RS/chat?"
        // url: "ws://192.168.2.110:9080/RS/chat?"
    });

})();